import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/supplier/business/businessdetail/` + url, ...arg)

/**
 * 业务明细表Api接口管理器
 *
 * @author Mr.wu
 * @date  2025/03/26 11:23
 **/
export default {
	// 获取业务明细表分页
	supplierBusinessDetailPage(data) {
		return request('page', data, 'get')
	},
	// 提交业务明细表表单 edit为true时为编辑，默认为新增
	supplierBusinessDetailSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除业务明细表
	supplierBusinessDetailDelete(data) {
		return request('delete', data)
	},
	// 获取业务明细表详情
	supplierBusinessDetailDetail(data) {
		return request('detail', data, 'get')
	},
	// 获取业务明细列表
	supplierBusinessDetailList(data) {
		return request('list', data, 'get')
	}
}
